#!/usr/bin/python
import cwiid
from time import sleep
import serial
import rollo.wiimote
import rollo.pololu
import logging
import logging.config

logging.config.fileConfig("conf/rollo.log.conf")

w= rollo.wiimote.Wiimote()

p= rollo.pololu.TReX()

while ( 1 ):
	p.basic_action(w.calc_action())
	sleep (0.5)
